/**
 *
 */
package com.oron3.locker;

import java.io.Serializable;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;

@DataTypeClass
public class Secret implements Serializable {

	@DataField(isKey = true, isNullable = false, references = SecretID.class, referenceField = "sid")
	@FormField
	public long sid;
	@DataField(isKey = true, isAutoIncrement = true)
	@FormField
	public long sid_id;
	@DataField(isNullable = false)
	@FormField
	public String secretTitle;
	@DataField(isNullable = false)
	@FormField
	public String secret;

	public Secret() {

	}

	public Secret(final long sid, final String secretTitle, final String secret) {
		this.sid = sid;
		this.secret = secret;
		this.secretTitle = secretTitle;
	}

	public Secret(String secretTitle, String secret) {
		this.secret = secret;
		this.secretTitle = secretTitle;
	}

	@Override
	public String toString() {
		return secret;
	}

}
